home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / makefiles / Makerules.common < prev    next >
Text File  |  1993-11-16  |  2KB  |  70 lines

  1. _always:
  2.  
  3. FILES:    _FILES
  4.  
  5. _FILES:
  6.     @echo "\tMaking FILES in `pwd`..."
  7.     @-/bin/rm -f FILES
  8.     @( if [ -f Makedefs ] ; then \
  9.          echo FILES Makefile Makedefs ${DISTFILES} ; \
  10.            else \
  11.          echo FILES Makefile ; \
  12.        fi ; \
  13.        ${OTHER_DISTFILES_CMD} \
  14.        ) | tr ' ' '\12' | sort > FILES
  15.  
  16. RFILES:    FILES
  17.     @${DO_DIRS_THIS_MACH}
  18.  
  19. DISTDIRS:
  20.     @echo ${DISTDIRS}
  21.  
  22. MACHTYPE:
  23.     @echo ${MACHTYPE}
  24.  
  25. clobber:    clean rm_libs rm_depend
  26.  
  27. check:    _always
  28.     @dir=`pwd`; check | while read line ; do \
  29.        echo "$$dir/"$$line ; \
  30.      done
  31.     @${DO_DIRS}
  32.  
  33. .DEFAULT:
  34.     @echo ""
  35.     @echo "ERROR: no rule for $@ in Makefile in directory"
  36.     @echo "`pwd`"
  37.     @echo ""
  38.     @exit 1
  39.  
  40. instpublic:
  41.     ${MAKE} SITE=public  MAKE="${MAKE} SITE=public" install
  42.  
  43. instprivate:
  44.     ${MAKE} SITE=private MAKE="${MAKE} SITE=private" install
  45.  
  46. demand_GEOMROOT:
  47.     @if [ -z "${GEOMROOT}" ]; then \
  48.         echo "Error: GEOMROOT variable not set.  You must edit the" >&2; \
  49.         echo "file makefiles/mk.site.${SITE} to set its value before running 'make install'." >&2; \
  50.         echo "Its value is incorporated into the ${BINDIR}/geomview shell script" >&2;  \
  51.         test next = "${MACHTYPE}" && \
  52.         echo "and in ${APPDIR}/Geomview.app/CONFIG.gv" >&2; \
  53.         exit 1; \
  54.     fi
  55.     @if [ ! -d "${GEOMROOT}" ]; then \
  56.         echo "Error: GEOMROOT directory ${GEOMROOT} does not exist." >&2;\
  57.         echo "Its value is incorporated into the ${BINDIR}/geomview shell script" >&2; \
  58.         test next = "${MACHTYPE}" && \
  59.         echo "and in ${APPDIR}/Geomview.app/CONFIG.gv" >&2; \
  60.         echo "You must set it correctly in makefiles/mk.site.${SITE} before running 'make install'." >&2; \
  61.         exit 1; \
  62.     fi
  63.  
  64.  
  65. #
  66. # For use on NeXTs when configured for making fat binaries:
  67. #
  68. fatdepend:
  69.     ${MAKE} CC=cc RMAKE='${MAKE} CC=cc' depend
  70.